/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Date;

/**
 * <p>Project: javase - Format2
 * <p>Powered by webrx On 2021-11-23 09:24:43
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Format2 {
    public static void main(String[] args) {
        Date d = new Date();
        System.out.printf("%tF %tT %tc%n", d, d, d);
        System.out.printf("%tF %1$tT %1$tc %1$tp %1$tA%n", d);
        System.out.printf("%tF %1$tT %1$tA%n", d);
        String str = String.format("%1$tY%1$tm%1$td%1$tH%1$tM%1$tS_%1$ts.jpg%n", d);
        System.out.println(str);
        System.out.println();
        System.out.printf("%tF %1$tT %1$tA%n", System.currentTimeMillis());
        System.out.printf("%1$tY年%1$tm月%1$td日 %1$tH时%1$tM分%1$tS秒 %1$tA", System.currentTimeMillis());
    }
}
